height = int(input('打印几层:'))
for i in range(1,height+1):
    print('*'*i)

for i in range(1,height+1):
    print(' '*(height-i+1)+"*"*i)

for i in range(1,height+1):
    print(' '*(height-i+1)+"*"*(2*i-1))